﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AvansRS.Domain;

namespace AvansRS.Data.InsertBuilders
{
    class InsertEventDate : Insert<EventDate>
    {
        public InsertEventDate() : base(new EventDate()) 
        {}

        public InsertEventDate WithForStudents(bool forStudents)
        {
            Instance.ForStudents = forStudents;
            return this;
        }

        public InsertEventDate WithAllowChanges(bool allowChanges)
        {
            Instance.AllowChanges = allowChanges;
            return this;
        }
        
        public InsertEventDate WithDate(DateTime date)
        {
            Instance.Date = date;
            return this;
        }
        
        public InsertEventDate WithEvent(Event eventVal)
        {
            Instance.Event = eventVal;
            return this;
        }

        public InsertEventDate WithRooster(Rooster rooster)
        {
            Instance.Rooster = rooster;
            return this;
        }

        public InsertEventDate WithRegistrations(IList<Registration> registrations)
        {
            Instance.Registrations = registrations;
            return this;
        }
    }
}
